import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;

public class FlowLayoutTest {

	public static void main(String[] args) {
		Frame frm = new Frame("Flow Layout Lab");

		frm.setLayout(new FlowLayout(FlowLayout.LEFT));

		Button[] btn = new Button[10];
		for (int i=0; i<10; i++)	{
			btn[i] = new Button("Button " + (i+1));
			frm.add(btn[i]);
		}

		frm.setBounds(100, 100, 250, 100);
		frm.setVisible(true);
	}
}
